@extends('Layout/layout')

@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("department").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('/department/department') }}"><p>部门管理</p></a></li>
<li><a href="{{ url('/department/post') }}"><p>岗位管理</p></a></li>
<li><a href="{{ url('/department/role') }}"><p>角色管理</p></a></li>
<li><a href="{{ url('/department/privilege/add') }}"><p>权限管理</p></a></li>
<!-- <li><a href="{{ url('/department/privilege') }}"><p>权限管理</p></a></li> -->
<!-- <li><a href="{{ url('/department/pass') }}"><p>密码修改</p></a></li> -->
<!-- <li><a href="{{ url('/department/allow') }}"><p>审批文档流程管理</p></a></li> -->
<!-- <li><a href="CustomManage.htm"><p>自定义功能管理</p></a></li> -->
</ul>
</div> 
<div class="mian_b">
<form action="{{ url('/department/role/update') }}" method="post">
<input type="hidden" name="id" value="{{ $res[0]['id'] }}">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
<tr>
<td width="5%" class="mian_b_bg_lm">&nbsp;</td>
<td colspan="4" class="mian_b_bg_lm">添加角色</td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="7%" valign="top">角色名称：</td>

<td width="56%"><input type="text" class="input_01" value="{{ $res[0]['RoleName'] }}" name="RoleName" id="textfield"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td valign="middle">菜单导航：</td>
<td colspan="3">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
@foreach($group as $k => $v)

		<tr>

		<td valign="top" colspan="3">
		@if(in_array($v['ClassId'], $res[0]['GroupId']))
			{{ $v['ClassName'] }}
		@endif
		</td>
		</tr>
@endforeach	

	

</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td valign="middle">备注：</td>
<td width="20%">
<input type="text" class="input_01" value="{{ $res[0]['Remark'] }}" name="Remark" id="textfield"> </td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="4">
<div align="center"><input type="image" src="/public/images/bnt_03.gif" style="margin-right:10px;" width="80" height="22"></div></td>
</tr>
</table>
{{ csrf_field() }}
</form>
</div>
</div>
</body>

@endsection